package com.example.demo.service;

import com.example.demo.entity.Post;
import java.util.List;

public interface PostService {
    Post createPost(Post post);
    Post getPostById(Long postId);
    List<Post> getPostsByAuthorId(Long authorId);
    List<Post> getAllPosts();
    Post updatePost(Post post);
    void deletePost(Long postId);
    void likePost(Long userId, Long postId);
    void unlikePost(Long userId, Long postId);
}